/*
 * Created on Feb 26, 2004
 *
 * To change the template for this generated file go to
 * Window - Preferences - Java - Code Generation - Code and Comments
 */
package com.vandagroup.portal.sys;

import com.vandagroup.common.bo.UserContext;
import com.vandagroup.common.webapp.AppLoginInterface;
import com.vandagroup.portal.util.PortalNameService;

/**
 * @author ERIC LEE
 *
 * To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Generation - Code and Comments
 */
public class PortalLoginInterface implements AppLoginInterface {

	public void login( UserContext user ) {
		//System.out.println( "PORTAL PORTAL PORTAL" );
		System.out.println( "INIT SYSTEM INIT SYSTEM SESSION" );
		
		
		String orgID = user.getOrgID();
		String deptID = user.getDeptID();
		// I set org name
		String orgName = PortalNameService.getOrgName( orgID );
		user.setOrgName( orgName );
		// II set dept name
		String deptName = PortalNameService.getDeptName( orgID );
		user.setDeptName( deptName );
		
	}
}
